package com.dglg.spring.service.impl;

import com.dglg.spring.dao.ScoresDao;
import com.dglg.spring.model.Scores;
import com.dglg.spring.service.ScoresService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ScoresServiceImpl implements ScoresService {
    @Autowired
    private ScoresDao scoresDao;


    @Override
    public int addstudent_id(String student_id, String class_name) {

        return this.scoresDao.addstudent_id(student_id, class_name);
    }

    @Override
    public int updateIndividual_scores(String student_id, double Individual_scores) {
        return this.scoresDao.updateIndividual_scores(student_id, Individual_scores);
    }

    @Override
    public int update_teachergroup_score(String student_id, double teachergroup_score) {
        return this.scoresDao.update_teachergroup_score(student_id, teachergroup_score);
    }

    @Override
    public Scores select_group_type(String student_id) {
        return this.scoresDao.select_group_type(student_id);
    }

    @Override
    public Scores select_allcomposite_type(String student_id){
        return this.scoresDao.select_allcomposite_type(student_id);
    }

    @Override
    public int updategroup_scores(String student_id,double group_scores) {
        return this.scoresDao.updategroup_scores(student_id,group_scores);
    }

    @Override
    public int updateexpertpanel_rating(String student_id,double expertpanel_rating) {
        return this.scoresDao.updateexpertpanel_rating(student_id,expertpanel_rating);
    }

    @Override
    public int updatecomposite_score(String student_id,double composite_score) {
        return this.scoresDao.updatecomposite_score(student_id, composite_score);
    }
}
